package com.jic.interaction.JDVOP.controller;

import com.jic.interaction.JDVOP.common.utils.JdVopAccessToken;
import com.jic.interaction.JDVOP.service.JdVopGetTokenService;
import io.swagger.annotations.Api;
import org.apiguardian.api.API;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Auther YGH
 * @DATE 2020/11/20/14:59
 */
@RestController
@RequestMapping("token")
@Api(tags = " [获取token]")
public class tokenController {
    @Resource
    private JdVopGetTokenService JdVopGetTokenservice;
    @PostMapping("to")
    public String token(){

        String jdVopAccessToken = JdVopGetTokenservice.getJdVopAccessToken();
        return jdVopAccessToken;
    }
}
